<div class="mailLists view">
<h2><?php  echo __('Mail List'); ?></h2>
	<dl>
		<dt><?php echo __('Id'); ?></dt>
		<dd>
			<?php echo h($mailList['MailList']['id']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Name'); ?></dt>
		<dd>
			<?php echo h($mailList['MailList']['name']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Mail Desc'); ?></dt>
		<dd>
			<?php echo h($mailList['MailList']['mail_desc']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Department'); ?></dt>
		<dd>
			<?php echo $this->Html->link($mailList['Department']['name'], array('controller' => 'departments', 'action' => 'view', $mailList['Department']['id'])); ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php echo __('Actions'); ?></h3>
	<ul>

                		<li><?php echo $this->Html->link(__('Users'), array('controller' => 'Users','action' => 'index')); ?></li>
                		<li><?php echo $this->Html->link(__('Departments'), array('controller' => 'departments', 'action' => 'index')); ?> </li>
                		<li><?php echo $this->Html->link(__('Contacts'), array('controller' => 'contacts', 'action' => 'index')); ?> </li>
                		<li><?php echo $this->Html->link(__('Mail Lists'), array('controller' => 'mail_lists', 'action' => 'index')); ?> </li>
                		<li><?php echo $this->Html->link(__('Timesheets'), array('controller' => 'timesheets', 'action' => 'index')); ?> </li>
                	</ul>
</div>
<div class="related">
	<h3><?php echo __('Related Contacts'); ?></h3>
	<?php if (!empty($mailList['Contact'])): ?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Id'); ?></th>
		<th><?php echo __('Name'); ?></th>
		<th><?php echo __('Position'); ?></th>
		<th><?php echo __('Email'); ?></th>
		<th><?php echo __('Mobile'); ?></th>
		<th><?php echo __('Home'); ?></th>
		<th><?php echo __('Office'); ?></th>
		<th><?php echo __('Address'); ?></th>
		<th><?php echo __('Notes'); ?></th>
		<th><?php echo __('Category'); ?></th>
		<th><?php echo __('Taken From'); ?></th>
		<th><?php echo __('Created Date'); ?></th>
		<th><?php echo __('Modified Date'); ?></th>
		<th><?php echo __('Dept Of Cont'); ?></th>
		<th class="actions"><?php echo __('Actions'); ?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($mailList['Contact'] as $contact): ?>
		<tr>
			<td><?php echo $contact['id']; ?></td>
			<td><?php echo $contact['name']; ?></td>
			<td><?php echo $contact['position']; ?></td>
			<td><?php echo $contact['email']; ?></td>
			<td><?php echo $contact['mobile']; ?></td>
			<td><?php echo $contact['home']; ?></td>
			<td><?php echo $contact['office']; ?></td>
			<td><?php echo $contact['address']; ?></td>
			<td><?php echo $contact['notes']; ?></td>
			<td><?php echo $contact['category']; ?></td>
			<td><?php echo $contact['taken_from']; ?></td>
			<td><?php echo $contact['created_date']; ?></td>
			<td><?php echo $contact['modified_date']; ?></td>
			<td><?php echo $contact['dept_of_cont']; ?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'contacts', 'action' => 'view', $contact['id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'contacts', 'action' => 'edit', $contact['id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'contacts', 'action' => 'delete', $contact['id']), null, __('Are you sure you want to delete # %s?', $contact['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Contact'), array('controller' => 'contacts', 'action' => 'add')); ?> </li>
		</ul>
	</div>
</div>
